<form id="{{$id}}" action="{{$action}}" method="post" class="mt-md-h">
    {{csrf_field()}}
    @component('backend::component.form.form-group')
        @slot('title') 新{{$title}} @endslot
        @component('backend::component.form.input-group')
            @slot('input')
                @component('backend::component.form.input')
                    @slot('name') {{$pwd_name}} @endslot
                    @slot('type') password @endslot
                @endcomponent
            @endslot
            @slot('button')
                @component('backend::component.form.button')
                    @slot('title') 随机生成 @endslot
                    @slot('size') sm @endslot
                    @slot('attr') onclick = randVal(this,8) data-target={{$pwd_name}} @endslot
                @endcomponent
            @endslot
        @endcomponent
{{--        @slot('remark') 必须至少包含一个大写字母，一个小写字母,一个特殊字符 @endslot--}}
    @endcomponent
    @component('backend::component.form.form-group')
        @slot('title') 确认{{$title}} @endslot
        @component('backend::component.form.input')
            @slot('name') confirm_{{$pwd_name}} @endslot
            @slot('type') password @endslot
        @endcomponent
    @endcomponent
    @component('backend::component.form.form-group')
        @slot('title') 安全密码 @endslot
        @component('backend::component.form.input')
            @slot('name') my_safe_pwd @endslot
            @slot('type') password @endslot
        @endcomponent
        @slot('remark') 自己的安全密码 @endslot
    @endcomponent
    <div class="form-actions">
        @component('backend::component.form.button')
            @slot('title') 提交 @endslot
            @slot('size') sm @endslot
            @slot('params') {"formId":"#{{$id}}"} @endslot
            @slot('class') btn-min-width ajax-form @endslot
        @endcomponent
        @component('backend::component.form.button')
            @slot('title') 重置 @endslot
            @slot('type') reset @endslot
            @slot('size') sm @endslot
            @slot('color') danger @endslot
            @slot('class') btn-min-width @endslot
        @endcomponent
    </div>
</form>